<template>
  <div class="order_item">
    <div class="img">
            <img v-lazy="productInfo.attrInfo.image" alt="">
        </div>
        <div class="info">
            <div class="it_dd">
                <div class="store_name">
                    {{productInfo.store_name}}
                </div>
                <div class="count">
                        x{{cart_num}}
                </div>
            </div>
            <div class="suk">
                {{productInfo.attrInfo.suk}}
            </div>
            <div class="price">
                {{productInfo.attrInfo.price}}
            </div>
        </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      attrInfo: {},
    };
  },
  props: {
    id: {
      type: Number,
    },

    cart_num: {
      type: Number,
    },
    productInfo: {
      type: Object,
    },
  },
  created() {
    
  },
  
};
</script>

<style lang="scss" scoped>
.order_item {
  display: flex;
  height: 65px;
  .img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    overflow: hidden;
    > img {
      width: 100%;
      height: 100%;
    }
  }
  .info {
    flex: 1;
    height: 100%;
    padding: 0 15px;
    .it_dd {
      display: flex;
      justify-content: space-between;
      width: 100%;
      height: 18px;
      line-height: 18px;
      .store_name {
        color: #282828;
        font-size: 14px;
        width: 160px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .count {
        font-size: 13px;
        color: #868686;
      }
    }
    .suk {
      color: #868686;
      font-size: 12px;
      margin-top: 4px;
    }
    .price {
      color: #fc4141;
      font-size: 13px;
      margin-top: 8px;
    }
  }
}
</style>

